const index = require('../config/index.js')
export function getCategorys() {
  return new Promise((resolve, reject) =>{
    wx.request({
      url: index.api + 'category',
      method: 'GET',
      success(res) {
        resolve(res)
      },
      fail(res) {
        reject(res)
      }
    })
  })
}
export default {
  getCategorys
}